﻿using System;
using System.Collections.Generic;

namespace Snake.Gameplay.EffectComponents
{
    [Serializable]
    public class RemoveGameplayEffectsWithTags : GameplayEffectComponent
    {
        public string[] tags = new string[0];

        public override void Apply(GameplayEffectSpec spec)
        {
            foreach (var tag in tags)
            {
                spec.Owner.EffectsContainer.RemoveEffectWithTag(tag);
            }
        }
    }
}